<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <form id="my-form" class="am-form tpl-form-line-form" enctype="multipart/form-data" method="post">
                    <div class="widget-body">
                        <fieldset>
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">PC收银端设置</div>
                            </div>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require">标题名称 </label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[name]"
                                           value="{$model['name']}" required>
                                </div>
                            </div>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require">登录页背景大图 </label>
                                <div class="am-u-sm-9 am-u-end">
									<div class="am-form-file">
										<button type="button" class="upload-file am-btn am-btn-secondary am-radius" >
											<i class="am-icon-cloud-upload"></i> 选择图片
										</button>
										<div class="uploader-list am-cf">
											<div class="file-item">
                                                <img src="{$model['bg_img']}">
                                                <input type="hidden" name="data[bg_img]"
                                                           value="{$model['bg_img']}">
                                            </div>
										</div>
									</div>
									<div class="help-block am-margin-top-sm">
										<small>图片建议尺寸：1920*1200像素</small>
									</div>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require">登陆页LOGO </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <div class="am-form-file">
                                        <button type="button" class="upload-file-logo upload-but am-btn am-btn-secondary am-radius" >
                                            <i class="am-icon-cloud-upload"></i> 选择图片
                                        </button>
                                        <div class="uploader-list am-cf">
                                            <div class="file-item">
                                                <img src="{$model['logo_img']}">
                                                <input type="hidden" name="data[logo_img]"
                                                           value="{$model['logo_img']}">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="help-block am-margin-top-sm">
                                        <small>图片建议尺寸：390*355像素</small>
                                    </div>
                                </div>
                            </div>
							<div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label form-require">显示版权 </label>
                                <div class="am-u-sm-9">
                                    <input type="text" class="tpl-form-input" name="data[copyright]"
                                           value="{$model['copyright']}" required>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
                                    <button type="submit" class="j-submit am-btn am-btn-secondary">提交
                                    </button>
                                </div>
                            </div>
                        </fieldset>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!-- 图片文件列表模板 -->
{include file="layout/_template/tpl_file_item_url" /}

<!-- 文件库弹窗 -->
{include file="layout/_template/file_library" /}
<script>
    $(function () {
		
		// 选择图片
        $('.upload-file').selectImages({
            name: 'data[bg_img]'
        });
        // 选择图片
        $('.upload-file-logo').selectImages({
            name: 'data[logo_img]'
        });

        $('#my-form').formPost();
    });
</script>
